import Detail from "@/pages/Detail/index.vue";
import Home from "@/pages/Home/index.vue";
import Login from "@/pages/Login/index.vue";
import Register from "@/pages/Register/index.vue";
import Search from "@/pages/Search/index.vue";

export const routes = [
    {
        path: '/detail/:skuId',
        name: 'Detail',
        component: Detail
    },

    {
        path: '/home', name: 'Home', component: Home, meta: {
            show: true
        }
    }, {
        path: '/login', name: "Login", component: Login, meta: {
            show: false
        }
    }, {
        path: '/register', name: "Register", component: Register, meta: {
            show: false
        }
    }, {
        path: '/search/:keyword?', name: "Search", component: Search, meta: {
            show: true
        }

    }, {
        path: '/', redirect: Home
    }]